package edu.gyc.homework;

import java.util.Scanner;

public class Star {


    public static void main(String[] args) {
        System.out.println("请输入行数");
        Scanner scanner = new Scanner(System.in);
        int n=scanner.nextInt();
        for (int row = 1; row <= n; row++) {
            for (int c1 = 0; c1 < n - row; c1++) {
                System.out.print(' ');
            }

            for (int c2 = 0; c2 < 2 * row - 1; c2++) {
                System.out.print('*');
            }
            System.out.println();

        }
    }
}
